// import 'package:common_utils/common_utils.dart';
// import 'package:flutter/material.dart';
// import 'package:flutter_chubao/models/model_product.dart';
// import 'package:flutter_chubao/route/app_route_name.dart';
// import 'package:flutter_chubao/tools/app_colors.dart';
// import 'package:flutter_chubao/tools/app_image_load.dart';
// import 'package:flutter_chubao/tools/app_textstyle.dart';
// import 'package:flutter_chubao/tools/tool_app/app_dio_client.dart';
// import 'package:flutter_screenutil/flutter_screenutil.dart';
// import 'package:get/get.dart';

// class AppWidgetProduct extends StatelessWidget {
//   final bool showGradient;
//   final ModelProduct model;
//   AppWidgetProduct(this.model, {this.showGradient = false});
//   @override
//   Widget build(BuildContext context) {
//     return Container(
//       // margin: EdgeInsets.only(top: 9.w),
//       padding: EdgeInsets.all(15.w),
//       decoration: BoxDecoration(
//           gradient:
//               showGradient ? LinearGradient(colors: kLinearRecommend) : null,
//           color: Colors.white,
//           borderRadius: BorderRadius.circular(12)),
//       child: Column(
//         children: [
//           Row(
//             children: [
//               AppImage.getLoad(model.logo, width: 17.w),
//               Padding(
//                 padding: EdgeInsets.symmetric(horizontal: 4.w),
//                 child: Text(
//                   "${model.name}-${model.subheading}",
//                   style: AppTextStyle.getNormalTextStyle(
//                     fontSize: 14,
//                   ),
//                 ),
//               ),
//               ...(model.label ?? []).map((e) => Container(
//                     height: 14.w,
//                     margin: EdgeInsets.only(left: 5.w),
//                     padding: EdgeInsets.symmetric(horizontal: 6.w),
//                     decoration: BoxDecoration(
//                         color: showGradient ? Colors.white : kColorAssistB4,
//                         borderRadius: BorderRadius.circular(7.w)),
//                     child: Text(e ?? '',
//                         style: AppTextStyle.getNormalTextStyle(
//                             fontSize: 10,
//                             color: showGradient ? Colors.black : Colors.white)),
//                   ))
//               // Container(
//               //   // height: 19.w,top: 1.w,
//               //   constraints: BoxConstraints(maxWidth: 200.w),
//               //   padding: EdgeInsets.only(left: 4.w, right: 4.w),
//               //   decoration: BoxDecoration(
//               //       borderRadius: BorderRadius.circular(2.w),
//               //       border: Border.all(width: 1, color: kColorAssistB6)),
//               //   child: Text(model.applyCondition ?? '',
//               //       style: AppTextStyle.getNormalTextStyle(
//               //               fontSize: 12, color: kColorAssistB6)
//               //           .copyWith(height: 1.4),
//               //       maxLines: 1,
//               //       overflow: TextOverflow.ellipsis),
//               // )
//             ],
//           ),
//           SizedBox(
//             height: 16.w,
//           ),
//           Row(
//             children: [
//               Column(
//                 crossAxisAlignment: CrossAxisAlignment.start,
//                 children: [
//                   Text(
//                     TextUtil.formatComma3(model.maxSwingCredits ?? 200000),
//                     style: AppTextStyle.getBoldTextStyle(
//                         fontSize: 21, color: kColorAssistB6),
//                   ),
//                   Text(
//                     '最高额度(元)',
//                     style: AppTextStyle.getNormalTextStyle(
//                         fontSize: 14, color: kColorTextB40),
//                   ),
//                 ],
//               ),
//               SizedBox(
//                 width: 29.w,
//               ),
//               Column(
//                 crossAxisAlignment: CrossAxisAlignment.start,
//                 children: [
//                   Text(
//                     "${model.dayRate}%",
//                     style: AppTextStyle.getBoldTextStyle(
//                       // fontFamily: kEnumFontFamily.DINBOLD,
//                       fontSize: 21,
//                     ),
//                   ),
//                   Text(
//                     '最低日利率',
//                     style: AppTextStyle.getNormalTextStyle(
//                         fontSize: 14, color: kColorTextB40),
//                   ),
//                 ],
//               ),
//               const Expanded(child: SizedBox()),
//               InkWell(
//                 onTap: () {
//                   AppDioClient.get('product/statistics',
//                       queryParameters: {'id': model.id});
//                   Get.toNamed(AppRouteName.appWebPage, arguments: {
//                     'title': model.name,
//                     'url': model.productUrl
//                   });
//                 },
//                 child: Container(
//                   height: 27.w,
//                   alignment: Alignment.center,
//                   padding: EdgeInsets.symmetric(horizontal: 12.w),
//                   decoration: BoxDecoration(
//                       color: kColorAssistB6,
//                       borderRadius: BorderRadius.circular(13.5.w)),
//                   child: Text('立即申请',
//                       style: AppTextStyle.getBoldTextStyle(
//                           fontSize: 14.w, color: Colors.white)
//                       // .copyWith(height: 1.7),
//                       ),
//                 ),
//               )
//               // ElevatedButton(onPressed: () {}, child: Text('立即申请'))
//             ],
//           ),
//           Container(
//             margin: EdgeInsets.only(top: 10.w),
//             padding: EdgeInsets.all(6.w),
//             decoration: BoxDecoration(
//                 color: showGradient ? kColorAssistR2 : kColorAssistB2,
//                 borderRadius: BorderRadius.circular(4.w)),
//             child: Row(
//               children: [
//                 Text(
//                   '客服电话:',
//                   style: AppTextStyle.getNormalTextStyle(
//                     fontSize: 12,
//                     color: showGradient ? kColorAssistR6 : kColorAssistB6,
//                   ),
//                 ),
//                 Text(
//                   model.serviceTel ?? '',
//                   style: AppTextStyle.getNormalTextStyle(
//                     fontSize: 12,
//                     color: showGradient ? kColorAssistR6 : kColorAssistB6,
//                   ),
//                 )
//               ],
//             ),
//           )
//         ],
//       ),
//     );
//   }
// }


// // {"goodsId":248,"organsId":"0","organsInfo":{"id":"","shortname":"","organsName":"浙江科星信息技术有限公司"},"type":1,"status":5,"name":"融360","logo":"https://daxc.oss-cn-chengdu.aliyuncs.com/upload/20221108/2bede85c33c04eb70b981e240b5fb033.png","label":[{"id":11,"color":"#41B119","labelName":"最新上线"},{"id":9,"color":"#E20303","labelName":"热门"}],"jumpUrl":"https://m.rong360.com/express?from=sem32&utm_source=qiandou23&utm_medium=cpa","applyInfo":{"applyOrgansStatus":0,"applyStatus":1,"applyRemarks":"已申请","applyTime":"2023-02-23 11:56:26"},"symbol":"%","applyCondition":"凭身份证+手机号即可申请","tel":"10100360","businessType":0,"rateName":"日利率","applyNum":4647,"maxAmount":"200000","monthRate":"0.02","loanTimeMin":12,"loanTimeMax":36,"loanTimeString":"12-36月","androidAuthStatus":1,"dayApplyNum":3,"dayApplyIsFull":0}
